Skip to main content

EstuaryClient.PinningApi

All URIs are relative to //api.estuary.tech/

MethodHTTP requestDescription
pinningPinsGetGET /pinning/pinsList all pin status objects
pinningPinsPinidDeleteDELETE /pinning/pins/{pinid}Delete a pinned object
pinningPinsPinidGetGET /pinning/pins/{pinid}Get a pin status object
pinningPinsPinidPostPOST /pinning/pins/{pinid}Replace a pinned object
pinningPinsPostPOST /pinning/pinsAdd and pin object

pinningPinsGet

TypesIpfsListPinStatusResponse pinningPinsGet()

List all pin status objects

This endpoint lists all pin status objects

Example

import {EstuaryClient} from 'estuary-client';
let defaultClient = EstuaryClient.ApiClient.instance;

// Configure API key authorization: bearerAuth
let bearerAuth = defaultClient.authentications['bearerAuth'];
bearerAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.apiKeyPrefix = 'Token';

let apiInstance = new EstuaryClient.PinningApi();
apiInstance.pinningPinsGet((error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});

Parameters

This endpoint does not need any parameter.

Return type

TypesIpfsListPinStatusResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

pinningPinsPinidDelete

pinningPinsPinidDelete(pinid)

Delete a pinned object

This endpoint deletes a pinned object.

Example

import {EstuaryClient} from 'estuary-client';
let defaultClient = EstuaryClient.ApiClient.instance;

// Configure API key authorization: bearerAuth
let bearerAuth = defaultClient.authentications['bearerAuth'];
bearerAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.apiKeyPrefix = 'Token';

let apiInstance = new EstuaryClient.PinningApi();
let pinid = "pinid_example"; // String | Pin ID

apiInstance.pinningPinsPinidDelete(pinid, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});

Parameters

NameTypeDescriptionNotes
pinidStringPin ID

Return type

null (empty response body)

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

pinningPinsPinidGet

TypesIpfsPinStatusResponse pinningPinsPinidGet(pinid)

Get a pin status object

This endpoint returns a pin status object.

Example

import {EstuaryClient} from 'estuary-client';
let defaultClient = EstuaryClient.ApiClient.instance;

// Configure API key authorization: bearerAuth
let bearerAuth = defaultClient.authentications['bearerAuth'];
bearerAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.apiKeyPrefix = 'Token';

let apiInstance = new EstuaryClient.PinningApi();
let pinid = "pinid_example"; // String | cid

apiInstance.pinningPinsPinidGet(pinid, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});

Parameters

NameTypeDescriptionNotes
pinidStringcid

Return type

TypesIpfsPinStatusResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

pinningPinsPinidPost

TypesIpfsPinStatusResponse pinningPinsPinidPost(body, pinid)

Replace a pinned object

This endpoint replaces a pinned object.

Example

import {EstuaryClient} from 'estuary-client';
let defaultClient = EstuaryClient.ApiClient.instance;

// Configure API key authorization: bearerAuth
let bearerAuth = defaultClient.authentications['bearerAuth'];
bearerAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.apiKeyPrefix = 'Token';

let apiInstance = new EstuaryClient.PinningApi();
let body = new EstuaryClient.TypesIpfsPin(); // TypesIpfsPin | New pin
let pinid = "pinid_example"; // String | Pin ID to be replaced

apiInstance.pinningPinsPinidPost(body, pinid, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});

Parameters

NameTypeDescriptionNotes
bodyTypesIpfsPinNew pin
pinidStringPin ID to be replaced

Return type

TypesIpfsPinStatusResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

pinningPinsPost

TypesIpfsPinStatusResponse pinningPinsPost(body, opts)

Add and pin object

This endpoint adds a pin to the IPFS daemon.

Example

import {EstuaryClient} from 'estuary-client';
let defaultClient = EstuaryClient.ApiClient.instance;

// Configure API key authorization: bearerAuth
let bearerAuth = defaultClient.authentications['bearerAuth'];
bearerAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.apiKeyPrefix = 'Token';

let apiInstance = new EstuaryClient.PinningApi();
let body = new EstuaryClient.TypesIpfsPin(); // TypesIpfsPin | Pin Body {cid:cid, name:name}
let opts = {
'ignoreDupes': "ignoreDupes_example", // String | Ignore Dupes
'overwrite': "overwrite_example" // String | Overwrite conflicting files in collections
};
apiInstance.pinningPinsPost(body, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});

Parameters

NameTypeDescriptionNotes
bodyTypesIpfsPinPin Body {cid:cid, name:name}
ignoreDupesStringIgnore Dupes[optional]
overwriteStringOverwrite conflicting files in collections[optional]

Return type

TypesIpfsPinStatusResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json